package tmall.domain.entity;

import tmall.common.entity.BaseEntity;

import java.util.Date;

/**
 * orders
 * @author 
 */
public class Order extends BaseEntity {
    private Long id;

    /**
     * 会员ID
     */
    private Integer userId;

    /**
     * 联系人
     */
    private String linkman;

    /**
     * 收货地址
     */
    private String address;

    /**
     * 邮编
     */
    private String code;

    /**
     * 电话
     */
    private String phone;

    /**
     * 订单总金额
     */
    private Double total;

    /**
     * 订单状态 1 待付款 2 已发货 3 已收货 4 已评价 0 无效订单
     */
    private Boolean state;

    private Date createTime;

    private String createBy;

    private Date updateTime;

    private String updateBy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", userId=" + userId +
                ", linkman='" + linkman + '\'' +
                ", address='" + address + '\'' +
                ", code='" + code + '\'' +
                ", phone='" + phone + '\'' +
                ", total=" + total +
                ", state=" + state +
                ", createTime=" + createTime +
                ", createBy='" + createBy + '\'' +
                ", updateTime=" + updateTime +
                ", updateBy='" + updateBy + '\'' +
                "} " + super.toString();
    }
}